//@athour Reenu


public class Customer 
{
	
	String custname="";
	int custage=0;
	String custaddress="";
	String custphone="";
	String custemail="reenu1@gmail.com";
	String custusername="";
	String custpassword="";
	boolean loggedin=false;
	int custid=0;
	
	
	
	boolean checkCustomer(String emailFromDemo)
	      {
		     if (custemail.equalsIgnoreCase(emailFromDemo))
		     {
		    	 return true;
		     }
		     else
		     {
		    	 return false;
		     }
		    	 
		
	      }
	
	
	 void customerSignUp(String usernamecust,String passwordcust,String namecust,int agecust,String addresscust,String  phonenumbercust,String emailcust)
	{
		custusername=usernamecust;
		System.out.println("username: " +custusername);
		custpassword=passwordcust;
		System.out.println("password: " +custpassword);
		custname=namecust;
		System.out.println("customername: " +custname);
		custage=agecust;
		System.out.println("age: " + custage);
		custaddress=addresscust;
		System.out.println("address: " +custaddress);
		custphone=phonenumbercust;
		System.out.println("phone: " +custphone);
		custemail=emailcust;
		System.out.println("email: " +custemail );
		System.out.println(" Sign up completed. ");
		System.out.println("You can now log into ur account. ");
			
		
	}
	 
	void  customerLogIn(String usernamecust, String passwordcust)
	 {
		if ((custusername==usernamecust) && (custpassword==passwordcust))
		{
			loggedin=true;
			System.out.println("welcome  " + usernamecust);
		}
		else
		{
			loggedin=false;
			System.out.println("Username and password doesn't match. \n");
		}
		 
	 }
	
	void getCustomerProfile(int customerid)
	{
		custid=customerid;
		switch(custid){
		case 1:
		{
			System.out.println("customer's name is " + custname);
			System.out.println("customer's age is " + custage);
			System.out.println("customer's address is " + custaddress);
			System.out.println("customer's phone number is " + custphone);
			System.out.println("customer's email is " + custemail);
			break;
		}
		case 2:
		{
			System.out.println("2nd customer's name is " );
			System.out.println("2nd customer's age is ");
			System.out.println("2nd customer's address is ");
			System.out.println("2nd customer's phone number is ");
			System.out.println("2nd customer's email is " );
			break;
		}
		default:
		{
			System.out.println("There is no such customerid .\n");
			break;
		}
			
		}
	}
	void deleteCustomer(int customerid)
	{
		if (customerid==custid)
		{
		custusername="";
		custpassword="";
		custname="";
		custage=0;
		custaddress="";
		custphone="";
		custemail="";
		custid=0;
		System.out.println("Customer profile deleted.");				
		}	
	}
	
}	
	
	
	
	
	
	
	
